package com.itheima.bank.service;

import com.itheima.bank.domain.Account;
import com.itheima.bank.domain.Trade;

import java.sql.SQLException;
import java.util.List;


public interface BankService {
    /**
     * 验证用户登陆
     */
    public Account userLogin(Account account);

    /**
     * 查询用户余额
     */
    public Double selectRemaining(String accountid);

    /**
     * 查询交易记录
     */
    public List<Trade> selectTrade(String accountid, String startTime, String endTime);

    /**
     * 用户转账
     */
    public String accountTransaction(String accountid, String toaccountid, Double money);

    /**
     * 给用户存钱
     */
    public String savemoney(String accountid, Double savemoney);

    /**
     * 给用户取钱
     */
    public String takemoney(String accountid, Double takemoney);
}
